#ifndef _COMPAT_MEMORY_H_
#define _COMPAT_MEMORY_H_

#include <compat/define.h>

#ifdef  __cplusplus
extern "C" 
{
#endif


void* heap_malloc(size_t size);
void* heap_calloc(size_t n,size_t size);
void* heap_realloc(void *mem_address, size_t size);
void  heap_free(void *ptr);
char* heap_strdup(const char *str);


void* os_memrchr(const void *s, int c, size_t n);
#ifdef __cplusplus
}
#endif

#endif
